home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / adainc / s-tasren.ads < prev    next >
Text File  |  1996-01-30  |  4KB  |  91 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --             S Y S T E M . T A S K I N G . R E N D E Z V O U S            --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.10 $                             --
  10. --                                                                          --
  11. --       Copyright (c) 1991,1992,1993,1994, FSU, All Rights Reserved        --
  12. --                                                                          --
  13. -- GNARL is free software; you can redistribute it  and/or modify it  under --
  14. -- terms  of  the  GNU  Library General Public License  as published by the --
  15. -- Free Software  Foundation;  either version 2, or (at  your  option)  any --
  16. -- later  version.  GNARL is distributed  in the hope that  it will be use- --
  17. -- ful, but but WITHOUT ANY WARRANTY;  without even the implied warranty of --
  18. -- MERCHANTABILITY  or  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. -- eral Library Public License  for more details.  You should have received --
  20. -- a  copy of the GNU Library General Public License along with GNARL;  see --
  21. -- file COPYING.LIB.  If not,  write to the  Free Software Foundation,  675 --
  22. -- Mass Ave, Cambridge, MA 02139, USA.                                      --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. with System.Compiler_Exceptions;
  27. --  Used for, Exception_ID
  28.  
  29. package System.Tasking.Rendezvous is
  30.    --  This interface is described in the document
  31.    --  Gnu Ada Runtime Library Interface (GNARLI).
  32.  
  33.    procedure Task_Entry_Call
  34.      (Acceptor              : Task_ID;
  35.       E                     : Task_Entry_Index;
  36.       Uninterpreted_Data    : System.Address;
  37.       Mode                  : Call_Modes;
  38.       Rendezvous_Successful : out Boolean);
  39.    --  General entry call
  40.  
  41.    procedure Call_Simple
  42.      (Acceptor           : Task_ID;
  43.       E                  : Task_Entry_Index;
  44.       Uninterpreted_Data : System.Address);
  45.    --  Simple entry call
  46.  
  47.    procedure Cancel_Task_Entry_Call (Cancelled : out Boolean);
  48.    --  Cancel pending task entry call
  49.  
  50.    procedure Requeue_Task_Entry
  51.      (Acceptor   : Task_ID;
  52.       E          : Task_Entry_Index;
  53.       With_Abort : Boolean);
  54.  
  55.    procedure Requeue_Protected_To_Task_Entry
  56.      (Object     : Protection_Access;
  57.       Acceptor   : Task_ID;
  58.       E          : Task_Entry_Index;
  59.       With_Abort : Boolean);
  60.  
  61.    procedure Selective_Wait
  62.      (Open_Accepts       : Accept_List_Access;
  63.       Select_Mode        : Select_Modes;
  64.       Uninterpreted_Data : out System.Address;
  65.       Index              : out Select_Index);
  66.    --  Selective wait
  67.  
  68.    procedure Accept_Call
  69.      (E                  : Task_Entry_Index;
  70.       Uninterpreted_Data : out System.Address);
  71.    --  Accept an entry call
  72.  
  73.    procedure Accept_Trivial (E : Task_Entry_Index);
  74.    --  Accept an entry call that has no parameters and no body
  75.  
  76.    function Task_Count (E : Task_Entry_Index) return Natural;
  77.    --  Return number of tasks waiting on the entry E (of current task)
  78.  
  79.    function Callable (T : Task_ID) return Boolean;
  80.    --  Return T'CALLABLE
  81.  
  82.    procedure Complete_Rendezvous;
  83.    --  Called by acceptor to wake up caller
  84.  
  85.    procedure Exceptional_Complete_Rendezvous
  86.      (Ex : Compiler_Exceptions.Exception_ID);
  87.    --  Called by acceptor to mark the end of the current rendezvous and
  88.    --  propagate an exception to the caller.
  89.  
  90. end System.Tasking.Rendezvous;
  91.